<include file="Public/header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <div class="nav">
    <ul class="cc">
      <li <if condition=" !isset($_GET['status']) && empty($itemtype) ">class="current"</if>><a href="{:U('TryItems/index')}">商品列表</a></li>
        <li><a href="javascript:void(0)" onClick="javascript:openwinx('{:U("TryItems/add")}','')" class="btn" title="添加内容"><span class="add"></span>添加商品</a></li>
    </ul>
  </div>
  <div class="h_a">搜索</div>
  <form method="post" action="{:U('index')}">
  <input type="hidden" value="1" name="search">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="status" style="width:70px;">
          <option value='' <if condition=" $status == '' "> selected</if>>全部</option>
          <option value="1" <if condition=" $status == 1 "> selected</if>>审核</option>
          <option value="2" <if condition=" $status == 2 "> selected</if>>未审核</option>
        </select>
        <select class="select_2" name="searchtype" style="width:100px;">
          <option value='1' <if condition=" $searchtype == '1' "> selected</if>>商品名称</option>
          <option value='2' <if condition=" $searchtype == '2' "> selected</if>>商家姓名</option>
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
      </div>
    </div>
  </form>
  <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
      <table width="100%">
        <colgroup>
        <col width="30">
        <col width="30">
        <col width="30">
        <col width="30">
        <col width="30">
        <col width="80">
        <col width="">
        <col width="50">
        <col width="50">
        <col width="80">
        <col width="50">
        <col width="80">
        <col width="80">
        <col width="100">
        <col width="100">
        </colgroup>
        <thead>
          <tr>
            <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
            <td>排序</td>
            <td>审</td>
            <td>荐</td>
            <td>热</td>
            <td>商家姓名</td>
            <td>商品名称</td>
            <td>价格</td>
            <td>份数</td>
            <td>申请人数</td>
            <td>剩余</td>
            <td>开始时间</td>
            <td>结束时间</td>
            <td>发布时间</td>
            <td>操作</td>
          </tr>
        </thead>
        <volist name="data" id="vo">
          <tr>
            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.tryid}"></td>
              <td><input name='sort[{$vo.tryid}]' type='text' size='3' value='{$vo.sort}' class='input'></td>
            <td>{$vo.status|showStatus}</td>
            <td>{$vo.iftj|showStatus}</td>
            <td>{$vo.ifhot|showStatus}</td>
            <td>{$vo.memberid|showTryMember}</td>
            <td>{$vo.title}</td>
            <td>{$vo.price}</td>
            <td>{$vo.trynum}</td>
              <td>{$vo.requestnum}</td>
              <td>{$vo.lastnum}</td>
              <td>{$vo.start_time|date="Y-m-d",###}</td>
              <td>{$vo.end_time|date="Y-m-d",###}</td>
              <td>{$vo.create_time|date="y-m-d H:i",###}</td>
              <td><a href="javascript:void(0)" onClick="javascript:openwinx('{:U("TryItems/edit",array("tryid"=>$vo[tryid]))}','')">修改</a> | <a class="J_ajax_del" data-msg="确定删除该栏目及栏目下的信息吗?" href="{:U('TryItems/delete', array('tryid' => $vo['tryid']))}">删除</a></td>
          </tr>
        </volist>
      </table>
      <div class="p10"><div class="pages"> {$Page} </div> </div>
     
    </div>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch_sort')}">排序</button>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch/',array('do'=>'checkpass'))}">审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch/',array('do'=>'cancelpass'))}">取消审核</button>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch/',array('do'=>'checktj'))}">推荐</button>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch/',array('do'=>'canceltj'))}">取消推荐</button>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch/',array('do'=>'checkhot'))}">热门</button>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch/',array('do'=>'cancelhot'))}">取消热门</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('TryItems/batch_delete')}">删除</button>
      </div>
    </div>
  </form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>